package day01;

import java.util.Scanner;

public class Demo02 {
    public static void main(String[] args) {
        //String fileName = "123.PNG";
        Scanner scan = new Scanner(System.in);
        String fileName = scan.nextLine();
        boolean check = fileName.toLowerCase().endsWith(".png");
        int index;
        if (check){
            index = fileName.lastIndexOf(".");

        }else
        {
            System.out.println("不是png图片");
        }
    }
}
